package com.thermofisher.beans;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author py
 * @since 2020-01-13
 */
@TableName("chance_info")
@Data
public class ChanceInfo extends Model<ChanceInfo>
{

    private static final long serialVersionUID = 1L;

    @TableId(value = "chance_id", type = IdType.INPUT)
    private String chanceId;

    @TableField("chance_name")
    private String chanceName;

    private String phase;

    @TableField("win_rate")
    private Double winRate;

    private Integer quantity;

    @TableField("scheduled_time")
    private String scheduledTime;

    @TableField("project_id")
    private String projectId;
    @TableField("project_no")
    private String projectNo;
    private String price;

    private String po;

    public String getPo()
    {
        return po;
    }

    public void setPo(String po)
    {
        this.po = po;
    }

    public String getPrice()
    {
        return price;
    }

    public void setPrice(String price)
    {
        this.price = price;
    }

    public String getChanceId() {
        return chanceId;
    }

    public void setChanceId(String chanceId) {
        this.chanceId = chanceId;
    }

    public String getChanceName()
    {
        return chanceName;
    }

    public void setChanceName(String chanceName)
    {
        this.chanceName = chanceName;
    }

    public String getPhase()
    {
        return phase;
    }

    public void setPhase(String phase)
    {
        this.phase = phase;
    }

    public Double getWinRate()
    {
        return winRate;
    }

    public void setWinRate(Double winRate)
    {
        this.winRate = winRate;
    }

    public Integer getQuantity()
    {
        return quantity;
    }

    public void setQuantity(Integer quantity)
    {
        this.quantity = quantity;
    }

    public String getScheduledTime()
    {
        return scheduledTime;
    }

    public void setScheduledTime(String scheduledTime)
    {
        this.scheduledTime = scheduledTime;
    }



    @Override
    protected Serializable pkVal()
    {
        return this.chanceId;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getProjectNo() {
        return projectNo;
    }

    public void setProjectNo(String projectNo) {
        this.projectNo = projectNo;
    }

    @Override
    public String toString() {
        return "ChanceInfo{" +
                "chanceId=" + chanceId +
                ", chanceName='" + chanceName + '\'' +
                ", phase='" + phase + '\'' +
                ", winRate=" + winRate +
                ", quantity=" + quantity +
                ", scheduledTime='" + scheduledTime + '\'' +
                ", projectId='" + projectId + '\'' +
                ", projectNo='" + projectNo + '\'' +
                ", price='" + price + '\'' +
                ", po='" + po + '\'' +
                '}';
    }
}
